home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Environments
/
Open Prolog 1.0.3d33
/
Samples
/
Tak
< prev
Wrap
Text File
|
1994-04-18
|
170b
|
11 lines
tak(A,B,C,C) :-
A=<B,!.
tak(A,B,C,D) :-
tak1(A,B,C,E),!,
tak1(B,C,A,F),!,
tak1(C,A,B,G),!,
tak(E,F,G,D).
tak1(A,B,C,D) :-
E is A-1,
tak(E,B,C,D).